﻿using LibNiconico.NiconicoApi.Extentions;
using LibNiconico.NiconicoApi.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LibNiconico.NiconicoApi.Alert
{
    internal class NicoAlertStatusQueryInfo:NicoUrlEncodedPostAble
    {
        private string ticket;


        internal NicoAlertStatusQueryInfo(string ticket)
        {
            this.ticket = ticket;
        }

        internal override byte[] AsPostData()
        {
            var queryStrings = new QueryStrings();
            queryStrings["ticket"] = this.ticket;

            return Encoding.UTF8.GetBytes(queryStrings.ToString());
        }

        internal override string AsPath()
        {
            return "api/getalertstatus";
        }

        internal override string AsQuery()
        {
            return "";
        }
    }
}
